<cfcomponent output="false">
	<cfset this.name="cfesapiTestJason1" />
	<cfset this.sessionManagement = true>
	<cfset this.sessionTimeout = createTimeSpan(0,0,30,0)>
	<cfset this.setClientCookies = false>

	
	<cffunction name="onApplicationStart" access="public" output="false">
		<cfset application.ESAPI = createObject("component", "cfesapi.org.owasp.esapi.ESAPI").init(ExpandPath('/cfesapi/esapi.xml')) />
	</cffunction>
	
	<cffunction name="onSessionStart" access="public" output="false">
		<cfset application.ESAPI.Authenticator().getUser() />
	</cffunction>
	
	<cffunction name="onRequestStart" access="public" output="false">
		<!--- <cfset StructDelete(application, "ESAPI") />
		<cfset onApplicationStart() /> --->
		
		<cfif NOT structkeyexists(session, 'user')>
			<cfset onSessionStart() />
		</cfif>
	</cffunction>
	
	
	<cffunction name="onSessionEnd" access="public" output="false">
	
	</cffunction>
	
	<cffunction name="onApplicationEnd" access="public" output="false">
	
	</cffunction>

	<cffunction name="onError" access="public" returntype="void" output="false">
		<cfargument name="Exception" required="true" />
 		<cfargument name="EventName" type="String"  required="true" />


		<cfdump var="#Exception#" /><cfabort>
	</cffunction>
</cfcomponent>
